#!/usr/python3.11/bin/python3.11
import sys
args = sys.argv[1]
def func1():
    	print("this is func1")
def func2():
	print("this is func2")
class A:
	def __init__(self,func_name):
		self.name = func_name
	def __getitem__(self,key):
		func_name = getattr(self,key)
		if func_name == 'func1':
			func1()
		elif func_name == 'func2':
			func2()
		else:
			print("输入不合法")
a = A(args)
print(a["name"])
